package com.mengwen.backstage.mapper;

import com.mengwen.backstage.pojo.Withdraw;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author LiangYonghui
 * @date 2020/4/8 15:00
 * @description  提现业务层实现类服务层
 */
@Mapper
@Repository
public interface WithdrawMapper {

    @Insert("INSERT INTO withdraw (partner_trade_no,openid,desc,amount,withdraw_time,nickname,unionid) " +
            " VALUES(#{partnerTradeNo},#{openid},#{desc},#{amount},#{withdrawTime},#{nickname},#{unionid})")
    Integer addTerm(Withdraw withdraw);
}
